<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.milk.entity.Orders" %>
<html>
<head>
  <title>更新结果</title>
</head>
<body>
<h2>更新结果</h2>
<%
  // 获取更新后的订单信息
  Orders updatedOrder = (Orders) request.getAttribute("updatedOrder");
  if (updatedOrder != null) {
%>
<table border="1">
  <tr>
    <th>ID</th>
    <th>用户名</th>
    <th>联系电话</th>
    <th>下单时间</th>
    <th>订单状态</th>
    <th>饮品ID列表</th>
  </tr>
  <tr>
    <td><%=updatedOrder.getId()%></td>
    <td><%=updatedOrder.getUserName()%></td>
    <td><%=updatedOrder.getContactPhone()%></td>
    <td><%=updatedOrder.getOrderTime()%></td>
    <td><%=updatedOrder.getStatus()%></td>
    <td><%=updatedOrder.getDrinkIds()%></td>
  </tr>
</table>
<%
} else {
%>
<p>未找到更新后的订单信息。</p>
<%
  }
%>
<a href="<%=request.getContextPath()%>/orders">返回订单列表</a>
</body>
</html>